package com.business.system.bean;

import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 16:35
 * @description:
 */
@Table(name = "USER_ADDRESS")
public class UserAddressBean {

	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "USER_ID", type = Type.变长文本, description = "用户", size = 32)
	private String userId;

	@Column(name = "USER_NAME", type = Type.变长文本, description = "收货人", size = 50)
	private String userName;

	@Column(name = "MOBILE", type = Type.变长文本, description = "手机号", size = 50)
	private String mobile;

    @Column(name = "PROVINCE", type = Type.变长文本, description = "省", size = 10)
    private String province;

    @Column(name = "CITY", type = Type.变长文本, description = "市", size = 10)
    private String city;

    @Column(name = "AREA", type = Type.变长文本, description = "区", size = 10)
    private String area;

    @Column(name = "UNION_ADDRESS", type = Type.变长文本, description = "冗余(用来存放省市区的中文名称合并)", size = 100)
    private String unionAddress;

	@Column(name = "ADDRESS", type = Type.变长文本, description = "收货详细地址", size = 50)
	private String address;

	@Column(name = "IS_DEFAULT", type = Type.数字整型, description = "是否为默认 1-默认 2-不是默认", size = 1)
	private int isDefault;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

    public int getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(int isDefault) {
        this.isDefault = isDefault;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getUnionAddress() {
        return unionAddress;
    }

    public void setUnionAddress(String unionAddress) {
        this.unionAddress = unionAddress;
    }
}